﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for BUS_TeacherClass
/// </summary>
public class BUS_TeacherClass : DAL_TeacherClass
{
    DataTable dtC = new DataTable();

    public DataTable TeacherClass_getAllData()
    {
        try
        {
            dtC = DAL_TeacherClass_getAllData();
        }
        catch
        {
        }
        return dtC;
    }
    public Boolean TeacherClass_addtodel(int id)
    {
        try
        {
            DAL_TeacherClass_addtodel(id);
        }
        catch
        {
            return false;
        }
        return true;
    }
    public Boolean TeacherClass_del()
    {
        try
        {
            DAL_TeacherClass_del();
        }
        catch
        {
            return false;
        }
        return true;
    }
    public DataTable TeacherClass_getAllById(int id)
    {
        try
        {
            dtC = DAL_TeacherClass_getAllById(id);
        }
        catch
        {
        }
        return dtC;
    }
    public DataTable TeacherClass_getAllByTeacherid(string tid)
    {
        try
        {
            dtC = DAL_TeacherClass_getAllByTeacherid(tid);
        }
        catch
        {
        }
        return dtC;
    }
    public DataTable TeacherClass_getAllByClassid(string cid)
    {
        try
        {
            dtC = DAL_TeacherClass_getAllByClassid(cid);
        }
        catch
        {
        }
        return dtC;
    }
    public DataTable TeacherClass_getDK(string id)
    {
        try
        {
            dtC = DAL_TeacherClass_getDK(id);
        }
        catch
        {
        }
        return dtC;
    }
    public Boolean TeacherClass_InsertDK(DTO_TeacherClass objC)
    {
        try
        {

            if (DAL_TeacherClass_InsertDK(objC))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        catch
        {
            return false;
        }
    }
    public DataTable TeacherClass_getSearch(string teacherid, string classid)
    {
        try
        {
            dtC = DAL_TeacherClass_getSearch(teacherid, classid);
        }
        catch
        {
        }
        return dtC;
    }
}